package com.zjq.springsocial.renren.api;

public class BasicInformation {

	private Sex sex;// 用户性别
	private String birthday;// 用户生日，格式为'yyyy-mm-dd'或'y0后-mm-dd'
	private HomeTown homeTown;// 家乡信息

	public BasicInformation(Sex sex, String birthday) {
		super();
		this.sex = sex;
		this.birthday = birthday;
	}

	public BasicInformation(Sex sex, String birthday, HomeTown homeTown) {
		super();
		this.sex = sex;
		this.birthday = birthday;
		this.homeTown = homeTown;
	}

	public Sex getSex() {
		return sex;
	}

	public void setSex(Sex sex) {
		this.sex = sex;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public HomeTown getHomeTown() {
		return homeTown;
	}

	public void setHomeTown(HomeTown homeTown) {
		this.homeTown = homeTown;
	}

	// 性别的种类
	public static enum Sex {
		FEMALE, // 枚举 女性
		MALE // 枚举 男性
	}

	// 家乡
	public static class HomeTown {
		private String province;// 所在省份
		private String city;// 所在城市

		public HomeTown() {
			super();
			// TODO Auto-generated constructor stub
		}

		public HomeTown(String province, String city) {
			super();
			this.province = province;
			this.city = city;
		}

		public String getProvince() {
			return province;
		}

		public void setProvince(String province) {
			this.province = province;
		}

		public String getCity() {
			return city;
		}

		public void setCity(String city) {
			this.city = city;
		}

	}
}
